Bug 590959 - Set child_has_focus flag properly (second try)
authorBenjamin Otte <otte@gnome.org>
Thu, 6 Aug 2009 14:25:20 +0000 (16:25 +0200)
committerBenjamin Otte <otte@gnome.org>
Wed, 12 Aug 2009 12:49:02 +0000 (14:49 +0200)
commite3bdf9291f6abd22e92f121716f9f39343b34568
tree7f4dce6bcf49cc49b5d6887d1d7a4e2f68d06688
parent860fdbe3ba6279dd354743f46d89e896fd14619e
Bug 590959 - Set child_has_focus flag properly (second try)

Previously, this flag wasn't cleared properly when the notebook lost
focus, but only when the notebook was focussed again later.
As this flag is only used to advance correctly focus pages by grabbing
focus to the new page after switching the page, this is not good.
In particular, it can cause a focus grab when programmatically switching
the notebook page and the focus is inside a completely different widget.

A previous attempt at this fix in
6e0af6c25225440263792a3cbecd8f4301e3def5 has been reverted in
dfe0c8c0ca4823c77fa71b0048f6454958170b4e because it didn't work
correctly.
gtk/gtknotebook.c